// module.exports = {
//     userName:"Jack",
//     sayHello: function(){
//         return 'fuck';
//     }
// }

exports.userName ="Tom";

exports.sayHello = function () {
    return 'bullshit';
}

let http = require('http');
let url = require('url')
let util =require('util')


let server = http.createServer((req,res)=>{
    res.statusCode =200;
    res.setHeader("Content-Type","text/plain; charset=utf-8");
    
    res.end(util.inspect(url.parse(req.url)));
})

server.listen(3000,'127.0.0.1', ()=>{
    console.log("server onlin,tab the 127.0.0.1");
});